﻿Imports DAO
Imports DTO
Imports System.Data.Linq

Public Class DocGiaBus
    Public Shared Function LayBang() As Table(Of DocGia)
        Return DocGiaDao.LayBang
    End Function

    Public Shared Function LayBang_Tracuu() As Object
        Return DocGiaDao.LayBang_Tracuu()
    End Function

    Public Shared Function LayBang_Tracuu_Theomathe(ByVal m As Integer) As Object
        Return DocGiaDao.LayBang_Tracuu_Theomathe(m)
    End Function

    Public Shared Function LayBang_Tracuu_Theohoten(ByVal ht As String) As Object
        Return DocGiaDao.LayBang_Tracuu_Theohoten(ht)
    End Function

    Public Shared Function LayBang_Tracuu_Theocmnd(ByVal cm As String) As Object
        Return DocGiaDao.LayBang_Tracuu_Theocmnd(cm)
    End Function

    Public Shared Function LayDanhSach() As IEnumerable(Of DocGia)
        Dim lst As IEnumerable(Of DocGia)
        lst = DocGiaDao.LayDanhSach()
        Return lst
    End Function

    Public Shared Function LayDocGia(ByVal m As Integer) As DocGia
        Return DocGiaDao.LayDocgia(m)
    End Function

    Public Shared Sub Them(ByVal t As DocGia)
        DocGiaDao.Them(t)
    End Sub

    Public Shared Sub ThemDocGia(ByVal d As DocGia, ByVal t As TheThuVien)
        DocGiaDao.ThemDocGia(d, t)
    End Sub

    Public Shared Sub CapNhat(ByVal docgia As DocGia)
        DocGiaDao.CapNhat(docgia)
    End Sub

    Public Shared Sub Xoa(ByVal m As Integer)
        DocGiaDao.Xoa(m)
    End Sub
End Class
